package com.test.thread.timer;

import java.util.Date;

public class TaskExecutor {

	public boolean doLongtimeJob() {

		System.out.println(new Date(System.currentTimeMillis()) + " Doing my Job...");
		try {
			Thread.sleep(3 * 1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(new Date(System.currentTimeMillis()) + " Finished my Job.");
		return true;
	}

}
